package com.zzz.common.security.exception;

import com.zzz.common.core.enums.ResultCode;
import lombok.Getter;

/**
 * @BelongsProject: oj-project
 * @BelongsPackage: com.zzz.common.security.exception
 * @Author: zhai
 * @CreateTime: 2025-10-13  13:28
 * @Description: TODO 业务层异常
 * @Version: 1.0
 */
@Getter
public class ServiceException extends RuntimeException {
    private ResultCode resultCode;
    private String msg;
    public ServiceException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
    public ServiceException(String msg) {
        this.msg = msg;
    }
}
